package com.telecom.service.impl;

import com.telecom.dao.UserDao;
import com.telecom.service.UserService;

import java.util.List;
import java.util.Set;
//Student  属性都是基本数据类型和字符串

public class UserServiceImpl implements UserService {
    private UserDao dao;  //属性是引用类型
    private String name;
    private Integer age;


    private Set<String> addresses;

    private List<UserDao> daoList;

    public List<UserDao> getDaoList() {
        return daoList;
    }
    public void setDaoList(List<UserDao> daoList) {
        this.daoList = daoList;
    }

    public Set<String> getAddresses() {
        return addresses;
    }

    public void setAddresses(Set<String> addresses) {
        this.addresses = addresses;
    }

    public void setDao(UserDao dao) { //daoImpl
        this.dao = dao;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public void insert() {
        dao.save();
    }
}
